<template>
    <li @click="clickColumn(item)" v-for="item, index in props.columns" :key="index">
        <div class="left">
            <div class="paperName"><span
                    class="title color">{{ item.name }}</span></div>
        </div>
        <div class="right">
            <div class="arrow"></div>
        </div>
    </li>
</template>


<script setup>
const props = defineProps({
    columns: {
        type: Array,
        default: []
    }
})
const emits = defineEmits(['clickColumn'])
function clickColumn(item) {
    emits('clickColumn', item)
}


</script>
<style scoped>
li {
    min-height: 100px;
    padding: 19px;

    display: flex;

    justify-content: space-between;

    align-items: center;
    margin-top: 20px;
    background: var(--bg_white);
    box-shadow: 0 1px 10px -2px rgba(0, 0, 0, .04);
    border-radius: 20px;
    border: 1px solid var(--gray_95);
    cursor: pointer;
}

li .left .paperName {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

li .left .paperName>img {
    display: inline-block;
    width: auto;
    height: 18px;
}

li .left .paperName .title {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray_20);
    line-height: 22px;
    margin-left: 10px;
}

li .right .arrow {
    width: 24px;
    height: 24px;
    background: var(--arrow) no-repeat;
    background-size: 100%;
}

li .left .info {

    display: flex;
    line-height: 17px;
    font-size: 14px;
    color: var(--gray_70);
    margin-top: 21px;
}
li:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
</style>